home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / out-of-phase-102-c / OutOfPhase 1.02 Source / OutOfPhase Folder / CalculatorWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-23  |  2.3 KB  |  77 lines  |  [TEXT/KAHL]

  1. /* CalculatorWindow.h */
  2.  
  3. #ifndef Included_CalculatorWindow_h
  4. #define Included_CalculatorWindow_h
  5.  
  6. /* CalculatorWindow module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Screen */
  12. /* TextEdit */
  13. /* EventLoop */
  14. /* Menus */
  15. /* WindowDispatcher */
  16. /* Memory */
  17. /* MainWindowStuff */
  18. /* GrowIcon */
  19. /* Main */
  20. /* SimpleButton */
  21. /* Alert */
  22. /* CodeCenter */
  23. /* PcodeStack */
  24. /* PcodeSystem */
  25. /* DataMunging */
  26. /* Numbers */
  27. /* FixedPoint */
  28. /* GlobalWindowMenuList */
  29. /* FunctionCode */
  30. /* CompilerRoot */
  31. /* PcodeDisassembly */
  32. /* DisassemblyWindow */
  33.  
  34. #include "Screen.h"
  35. #include "EventLoop.h"
  36. #include "Menus.h"
  37.  
  38. struct CalcWindowRec;
  39. typedef struct CalcWindowRec CalcWindowRec;
  40.  
  41. /* forward declarations */
  42. struct CodeCenterRec;
  43. struct MainWindowRec;
  44.  
  45.  
  46. /* create a new calculator window.  the caller is responsible for registering the */
  47. /* new calculator with the main window. */
  48. CalcWindowRec*            NewCalculatorWindow(struct MainWindowRec* MainWindow,
  49.                                             struct CodeCenterRec* CodeCenter);
  50.  
  51. /* dispose of a calculator window.  the calculator notifies the main window that */
  52. /* owns it. */
  53. void                                DisposeCalculatorWindow(CalcWindowRec* Window);
  54.  
  55. /* event handling routines for the calculator */
  56. void                                CalculatorWindowDoIdle(CalcWindowRec* Window,
  57.                                             MyBoolean CheckCursorFlag, OrdType XLoc, OrdType YLoc,
  58.                                             ModifierFlags Modifiers);
  59. void                                CalculatorWindowBecomeActive(CalcWindowRec* Window);
  60. void                                CalculatorWindowBecomeInactive(CalcWindowRec* Window);
  61. void                                CalculatorWindowJustResized(CalcWindowRec* Window);
  62. void                                CalculatorWindowDoMouseDown(OrdType XLoc, OrdType YLoc,
  63.                                             ModifierFlags Modifiers, CalcWindowRec* Window);
  64. void                                CalculatorWindowDoKeyDown(unsigned char KeyCode,
  65.                                             ModifierFlags Modifiers, CalcWindowRec* Window);
  66. void                                CalculatorWindowClose(CalcWindowRec* Window);
  67. void                                CalculatorWindowUpdator(CalcWindowRec* Window);
  68. void                                CalculatorWindowMenuSetup(CalcWindowRec* Window);
  69. void                                CalculatorWindowDoMenuCommand(CalcWindowRec* Window,
  70.                                             MenuItemType* MenuItem);
  71.  
  72. /* perform evaluation.  if there is a selection, then evaluate */
  73. /* the selection, otherwise evaluate from last point */
  74. void                                CalculatorWindowDoCalculation(CalcWindowRec* Window);
  75.  
  76. #endif
  77.